<!--
  @author heguanghua
  @since 2019/06/12 19:34
-->
<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">

<table class="layui-hide" id="zmn-table" lay-filter="zmn-table" th:fragment="table">
    <thead>
    <tr>
        <th lay-data="{field:'tariffName', minWidth:170, unresize:true, align:'center'}">价格表名称</th>
        <th lay-data="{field:'bizType', width:100, unresize:true, align:'center'}">业务类型</th>
        <th lay-data="{field:'tariffType',width:100, unresize:false, align:'center'}">价格表类型</th>
        <th lay-data="{field:'general',width:100, unresize:false, align:'center'}">是否默认</th>
        <th lay-data="{field:'status', width:100, unresize:false, align:'center'}">状态</th>
        <th lay-data="{field:'desc', unresize:false, align:'center'}">价格表说明</th>
        <th lay-data="{field:'specialDesc', minWidth:170,unresize:false, align:'center'}">特殊说明</th>
        <th lay-data="{field:'操作',width:140, unresize:true, align:'center', fixed:'right'}">操作</th>
    </tr>
    </thead>
    <tbody>
    <tr th:each="item:${items}">
        <td th:text="${item.tariffName}">tariffName</td>
        <td th:text="${T(com.zmn.plat.common.dictionary.ProductDict).translateBizType(item.bizType,'/')}" class="layui-gray">bizType</td>
        <!--<td th:text="${item.tariffType==1?'服务价格':'计价器价格'}" class="">tariffType</td>-->
        <td th:switch="${item.tariffType}">
            <div th:case="1">服务价格</div>
            <div th:case="2">计价器价格</div>
            <div th:case="3">提前付价格</div>
            <div th:case="4">计价器3.0价格</div>
        </td>
        <td th:text="${item.general==1?'非默认':'默认'}" class="layui-gray">general</td>
        <td th:text="${item.status==1?'停用':'启用'}" class="layui-gray">status</td>
        <td th:text="${item.desc}" class="layui-gray">desc</td>
        <td th:text="${item.specialDesc}" class="layui-gray">specialDesc</td>
        <td>
            <div>
                <a th:if="${#authPermit.checkPermit('/product/tariff/group/listTable.action')}" lay-text="基础价格" style="color: #00a0e9"
                   th:lay-href="|/product/tariff/group/listTable.action?productId=${servProductVO.productId}&tariffId=${item.tariffId}|">基础价格</a>
            </div>
        </td>
    </tr>
    </tbody>
</table>
